package izzat.fit.dbservice.entity;

import izzat.fit.dbservice.base.entity.BaseEntity;

import java.lang.reflect.Array;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: ResponseEntity
 * @Description: 响应实体
 * @Author: Izzat
 * @Date: 2020-01-03 10:59
 * @Version: v1.0
 */
public class ResponseEntity {
    private int status;
    private List<? extends BaseEntity> datas;
    private String info;

    public ResponseEntity status(int status){
        this.setStatus(status);
        return this;
    }

    public ResponseEntity datas(List<? extends BaseEntity> datas){
        this.setDatas(datas);
        return this;
    }

    public ResponseEntity info(String info){
        this.setInfo(info);
        return this;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<?> getDatas() {
        return datas;
    }

    public void setDatas(List<? extends BaseEntity> datas) {
        this.datas = datas;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}
